package cn.shujuhai.meeting.util;

import cn.shujuhai.meeting.service.MeetingRoomsService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: NiuYaHu
 * @Date: 2025/4/8 16:41
 * @Description:
 **/
@Component
public class UpdateMeetStatus {
    private static MeetingRoomsService service;

    @Autowired
    public UpdateMeetStatus(MeetingRoomsService service) {
        UpdateMeetStatus.service = service;
    }

    public static void updateMeetStatus(Integer roomId, String newStatus) {
        service.updateMeetingRoomStatus(roomId, newStatus);
    }
}
